{% extends 'base/base.html' %}
{% block title %}
    <title>修改商品</title>
{% endblock %}

{% block content %}
    <h1>修改商品</h1>
    <form action="{{ url_for('mall.product_edit', uid=prod_obj.uid) }}" method="post" enctype="multipart/form-data">
        <div class="form-group">
{#            商品名称#}
            {{ form.name.label }}
            {{ form.name }}
            <p class="help-block">{{ form.name.description }}</p>
        </div>
        <div class="form-group">
            {{ form.content.label }}
            {{ form.content }}
            <p class="help-block">{{ form.content.description }}</p>
        </div>
        <div class="form-group">
            {{ form.desc.label }}
            {{ form.desc }}
            <p class="help-block">{{ form.desc.description }}</p>
        </div>
        <div class="form-group">
            {{ form.types.label }}
            {{ form.types }}
        </div>
        <div class="form-group">
            {{ form.price.label }}
            {{ form.price }}
        </div>
        <div class="form-group">
            {{ form.origin_price.label }}
            {{ form.origin_price }}
        </div>
        <div class="form-group">
            {{ form.img.label }}
            {{ form.img }}
        </div>
        <div class="form-group">
            {{ form.channel.label }}
            {{ form.channel }}
        </div>
        <div class="form-group">
            {{ form.buy_link.label }}
            {{ form.buy_link }}
        </div>
         <div class="form-group">
            {{ form.status.label }}
            {{ form.status }}
        </div>
         <div class="form-group">
            {{ form.remain_count.label }}
            {{ form.remain_count }}
        </div>
         <div class="form-group">
            {{ form.sku_count.label }}
            {{ form.sku_count }}
        </div>
         <div class="form-group">
            {{ form.view_count.label }}
            {{ form.view_count }}
        </div>
         <div class="form-group">
            {{ form.score.label }}
            {{ form.score }}
        </div>
         <div class="form-group">
            {{ form.is_valid.label }}
            {{ form.is_valid }}
        </div>
         <div class="form-group">
            {{ form.reorder.label }}
            {{ form.reorder }}
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
        {{ form.csrf_token }}
    </form>
{% endblock %}